package com.usian.mappers;

import com.usian.pojo.Etc;
import com.usian.pojo.Role;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface EtcMapper extends tk.mybatis.mapper.common.Mapper<Etc> {

@Select("select * from role")
    List<Role> findRole();
@Delete("delete from etc where id=#{id}")
    void del(Integer id);
    @Select("select * from etc where id=#{id}")
    Etc findOne(Integer id);
@Update("update etc set che=#{che},ka=#{ka},money=#{money},ename=#{ename},nx=#{nx} where id=#{id}")
    void up(Etc etc);
}
